Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/clang warnings #146

Merged
merged 2 commits into from
Oct 13, 2019
Merged

Fix/clang warnings #146

merged 2 commits into from
Oct 13, 2019

Conversation

dellaert
Copy link
Member

@dellaert dellaert commented Oct 12, 2019

Fix warnings on clang. Most are missing overrides from @varunagrawal 's last PR. Probably warnings did not show up on Linux. But I also resolved calls to ptr_fun which was deprecated in c++11.


This change is Reviewable

Vector diag = cg->R().diagonal();
cg->get_model()->whitenInPlace(diag);
logDet += diag.unaryExpr(ptr_fun<double,double>(log)).sum();
logDet += diag.unaryExpr([](double x) { return log(x); }).sum();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lambdas! 👍

Copy link
Collaborator

@ProfFan ProfFan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@dellaert dellaert merged commit 6ef7b48 into develop Oct 13, 2019
@dellaert dellaert deleted the fix/clang-warnings branch October 13, 2019 16:43
varunagrawal added a commit that referenced this pull request Mar 21, 2022
24da9d1be Merge pull request #146 from borglab/fix/matlab
3101236fe fix missing semi-colon for class forward declaration
e933e14a0 add missing boost header

git-subtree-dir: wrap
git-subtree-split: 24da9d1be2b26ecf9abbfd9153b24fbdcf007f4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants